package com.swinboo.im.integration;

import com.huang.base.AbstractIntegrationFactoryBean;
import com.swinboo.im.client.EMContactClient;
import com.swinboo.im.client.IMClient;
import com.swinboo.im.fallback.EMContactFallback;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author Swinboo
 * @date 2022-03-18 11:28
 * @description:
 */

@Component(value = EMContactIntegration.BEAN_NAME)
public class EMContactIntegration extends AbstractIntegrationFactoryBean<EMContactClient> {

    public static final String BEAN_NAME = "EMContactIntegration";

    @Resource
    private EMContactClient emContactClient;


    @Override
    protected EMContactClient getTarget() {
        return emContactClient;
    }

    @Override
    protected Class<EMContactClient> getTargetClass() {
        return EMContactClient.class;
    }
}
